package com.chaos.auth.config.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class AuthenticationIdentityEnums {

    @Getter
    @AllArgsConstructor
    public enum LogInIdentity {
        ADMIN_PHONE("admin_phone", "管理员手机登录"),
        ADMIN_USERNAME("admin_username", "管理员用户名密码登录"),
        //ADMIN_DINGDING("admin_dingding", "管理员钉钉授权登录"),


        USER_PHONE("user_phone", "C端用户手机号一键登录"),
        //USER_PHONE_CAPTCHA("user_phone_captcha", "C端用户手机号验证码"),
        //USER_USERNAME("user_username", "C端用户用户名密码登录"),
        //USER_TOURISTS("user_tourists", "C端用户游客登录"),
        USER_WXOPENID("user_wxopenid", "C端用户微信授权登录"),
        USER_ALIOPENID("user_aliopenid", "C端用户支付宝授权登录")

        ;
        private final String code;
        private final String name;
    }

    @Getter
    @AllArgsConstructor
    public enum GrantType {


        //AUTHORIZATION_CODE("authorization_code", "授权码"),
        //password("password", "密码"),
        //implicit("implicit", "简化"),
        //用于客户端模式：开放 api 对接
        CLIENT_CREDENTIALS("client_credentials", "客户端")

        ;

        private String code;
        private String name;
    }

}
